# 导包
'''import requests
import config


# 创建类
class LoginAPI:
    # 登录接口
    def login(self, login_data):
        url = config.BASE_URL + "/api/sys/login"
        # login_data = {
        #     "mobile": "13800000002",
        #     "password": "123456"
        # }
        response = requests.post(url=url, json=login_data)
        return response


if __name__ == '__main__':
    api = LoginAPI()
    print(api.login({"mobile": "13800000002", "password": "123456"}).json())
    print(api.login({"mobile": "13866778899", "password": "123456"}).json())
    print(api.login({"mobile": "13800000002", "password": "123457"}).json())'''
import unittest

import requests

import config
class LoginAPI:
    def login(self,login_data):
        url=config.BASE_URL + "/api/sys/login"
        response=requests.post(url=url,json=login_data)
        return response
if __name__=="__main__":
    print(LoginAPI().login({"mobile": "13800000002", "password": "123456"}).json())
    print(LoginAPI().login({"mobile": "13800000000", "password": "123456"}).json())
    print(LoginAPI().login({"mobile": "13800000002", "password": "123459"}).json())

